<?php
class Controller{
	protected $_v;
	public function __construct(){
		$this->_v = new Smarty();
	}

	public function display($tpl=''){
		if($tpl==''){
			$tpl = './app/'.MODULE.'/View/'.CONTROLLER.'/'.ACTION.'.html';
		}else{
			$tpl = './app/'.MODULE.'/View/'.CONTROLLER.'/'.$tpl.'.html';
		}
		$this->_v->display($tpl);
	}

	public function assign($key,$value){
		$this->_v->assign($key,$value);
	}
}